package com.linewell.service.impl;

import com.linewell.dao.impl.MessageDao;
import com.linewell.entity.Message;
import com.linewell.service.IMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;



@Service
public class MessageService implements IMessageService {

	@Autowired
	private MessageDao messageDao;
	
	public void InsertMessage(Message message) {
		messageDao.InsertMessage(message);
	}

	public List<Message> getMessageList(Long sender, Long receiver) {
		return messageDao.getMessageList(sender, receiver);
	}

	public void updateBatchState(List<Long> messages) {
		messageDao.updateBatchState(messages);
	}

}
